import { requestType } from '~/config/enum.config';

const SERVICE = 'domain-service';
const CONTROLLER = 'dateStrategyController';

export default {
  /**
   * 查询日期策略
   */
  queryAllDateStrategyPage: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryAllDateStrategyPage',
    type: requestType.Get,
  },
  /**
   * 查询一条策略日志
   */
  queryResponseEntityLogList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryResponseEntityLogList',
    type: requestType.Get,
  },
  /**
   * 查询某个日期策略已审批通过的日志
   */
  queryResponseEntityPassLogList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryResponseEntityPassLogList',
    type: requestType.Get,
  },
  /**
   * 保存日期策略
   */
  saveDateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'saveDateStrategy',
    type: requestType.Post,
  },
  /**
   * 停用日期策略
   */
  stopOrStartDateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'stopOrStartDateStrategy',
    type: requestType.Put,
  },
  /**
   * 修改日期策略
   */
  updateDateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateDateStrategy',
    type: requestType.Put,
  },
  /**
   * 通过ID查找日期策略详情
   */
  queryResponseEntityLogInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryResponseEntityLogInfo',
    type: requestType.Get,
  }
};
